package com.lingxi.work;

public class xzt
{
    public static void main(String[] args)
    {
        String s = new String("abcdefg");
        for (int i=0; i<s.length(); i+=2){
            System.out.print(s.charAt(i));
        }
    }
}
